package com.yan.jingdongshop.dao;

import com.yan.jingdongshop.domain.Goods;

import java.util.ArrayList;
import java.util.TreeMap;

/**
 * @author taoge
 * @Date 2024/8/2 18:42
 * @Description
 */
public class Dao {
    public static final TreeMap<String , Goods> goods = new TreeMap<>();
    public static final TreeMap<String , Goods> shopCart = new TreeMap<>();
    static {
        goods.put("001" , new Goods("001" , "蜘蛛王皮鞋" , 238.0 , "黑色" , 42 , 100000));
        goods.put("003" , new Goods("003" , "Thinkpad x240" , 5939.0 , "黑色" , 12 , 50));
        goods.put("002" , new Goods("002" , "iPhone 7plus" , 5686.0 , "白色" , 5 , 5000));
    }
}
